﻿@model QAS.Nekorama.Models.RegisterExternalLoginModel
@using Resources
@{
    ViewBag.Title = QAS_Nekorama.REGISTER;
    Model.DisplayName = "";
}
@Scripts.Render("jqueryval")

<div id="primary">
    <div id="primary-1">
       </div>
    <!--end primary-1-->

    <div id="primary-2">
        <hgroup class="title">
            <h1>@ViewBag.Title</h1>
            <h2 style="margin-bottom: 20px;">@QAS_Nekorama.ASSOCIATE_ACCOUNT [@Model.Email]</h2>
        </hgroup>

        @using (Html.BeginForm("ExternalLoginConfirmation", "Account", new {ViewBag.ReturnUrl}, FormMethod.Post, new {@id = "register"}))
        {
            @Html.AntiForgeryToken()
           

            <p style="font-size: 12px; margin-bottom: 10px;">
                @Messages.SUCCESSFUL_AUTHENTICATE
            </p>
            <ol>
                <li class="name">
                    <h3>@QAS_Nekorama.DISPLAY_NAME</h3>
                    <br /> 
                    @Html.ValidationSummary(false)
                   
                    @Html.TextBoxFor(m => m.DisplayName, new {@name = "Display Name", maxlength = "10", required = "required", placeholder = QAS_Nekorama.ENTER_DISPLAY_NAME, id = "displayname"})
                    <br />
                </li>
            </ol>
            @Html.HiddenFor(m => m.ExternalLoginData)
            @Html.HiddenFor(m => m.Email)
            <br />
            @Html.ActionLink(QAS_Nekorama.REGISTER, null, null, new {@class = "registerbutton", href = "javascript:document.getElementById('register').submit();", style = "float:none;margin-left:237px;"})
        }
    </div>
    <!--end primary-2-->
    <div id="primary-3"></div>
    <!--end primary-3-->
</div>
<!--end primary-->

<script> $('#displayname').text(@QAS_Nekorama.ENTER_DISPLAY_NAME);
   
</script>